package com.shelpe.services.sinbad.service;

import java.util.List;

import com.shelpe.services.sinbad.model.RptKeyword;
import com.shelpe.services.sinbad.model.RptKeywordExample;
import com.shelpe.services.sinbad.model.RptKeywordParam;

import lombok.Data;

public interface RptKeywordService {

	/**
	 * 根据条件获取keywordids
	 */
	public List<KeywordCompositeID> getKeywordIds(RptKeywordParam param);

	/**
	 * 指标摘要
	 * 
	 * @param param
	 * @return
	 */
	public RptKeyword getSummariesMetric(RptKeywordParam param);

	/** rpt_campaign计划摘要 */
	public RptKeyword getCampaignSummariesMetric(RptKeywordParam param);

	/**
	 * 趋势图 以推广单元分组
	 * 
	 * @param param
	 * @return
	 */
	public List<RptKeyword> getReportsTrend(RptKeywordParam param);

	// 汇总数据
	public RptKeyword selectSum(RptKeywordParam param);

	/**
	 * 趋势图 以日期分组
	 * 
	 * @param param
	 * @return
	 */
	public List<RptKeyword> getReportsTrendByDate(RptKeywordParam param);
	
	/**
	 * @description 当天质量得分是否同步
	 * 
	 * @param example
	 * @return
	 * @author letian@shelpe.com
	 * @date 2017年3月31日 上午10:59:10
	 */
	Integer countCurrdaySysScore(RptKeywordParam param);

	@Data
	public static class KeywordCompositeID {
		private long keywordID;
		private long campaignID;
		private long adgroupID;

		public KeywordCompositeID() {

		}

		public KeywordCompositeID(long keywordID, long campaignID, long adgroupID) {
			super();
			this.keywordID = keywordID;
			this.campaignID = campaignID;
			this.adgroupID = adgroupID;
		}

	}

}
